﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login2.aspx.cs" Inherits="login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type = "text/css">
        #div1
        {
            float:left;
            width :200px;
            margin:200px;
            padding:10px;
        }
    </style>
    <title></title>
</head>
<body background="background.jpg">
    <form id="form1" runat="server">
    <div id = "div1">

    用户名：
    <asp:TextBox 
         ID = "txtuser"
         runat = "server" Height="22px" Width="125px" ></asp:TextBox>
    <asp:RequiredFieldValidator 
         ID = "requser"
         Text ="用户名不能为空"
         ControlToValidate = "txtuser"
         runat = "server" ></asp:RequiredFieldValidator>
    <br />
     &nbsp;&nbsp;
     密码： 
    <asp:TextBox 
         ID = "txtpwd"
         TextMode = "Password"
         Width = "125px"
         runat = "server" Height="22px"  ></asp:TextBox>
    <asp:RequiredFieldValidator 
         ID = "reqpwd"
         Text = "密码不能为空"
         ControlToValidate = "txtpwd"
         runat = "server" ></asp:RequiredFieldValidator>
        <br />
    <br />
    <asp:RadioButtonList 
         ID = "rblClass"
         runat = "server"
         RepeatDirection = "Horizontal" 
         onselectedindexchanged="rblClass_SelectedIndexChanged">
         <asp:ListItem Value = "0">管理员</asp:ListItem>
         <asp:ListItem Value = "1">学生</asp:ListItem>
    </asp:RadioButtonList>
        <br />

    <asp:Button 
         ID = "btnlogin"
         Text = "登陆"
         runat = "server" onclick="btnlogin_Click" style="height: 26px" />
    
    </div>
    </form>
</body>
</html>
